<%-- 
    Document   : displaySubSubject
    Created on : Oct 29, 2009, 4:56:38 AM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" import="DAO.DAOAction.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <jsp:useBean id="ObjectAction" class="DAO.DAOAction" scope="page" />
        <%

            int key = Integer.parseInt(request.getParameter("key"));
            int id = Integer.parseInt(request.getParameter("id"));
            String display = request.getParameter("display");
            if (ObjectAction.updateStatusSubSubject(id, display) == true) {
                response.sendRedirect("../displaySubSubject.jsp?id="+key);
            } else {
            out.println("Khong thanh cong");
        }

        %>
    </body>
</html>
